<?php
/**
 * 公众号生成二维码接口
 * @author lss
 * 2017-08-03
 */
namespace soa\mp;

use soa\client;

class QRCode  extends client
{
    /**
     * 服务地址
     * @var string
     */
    public $service_url = 'http://mp.kuaidihelp.com/';

    /**
     * 服务名称
     * @var string
     */
    protected $service_name = 'kuaidihelp_mp';

	//云打印平台生成打印机二维码
	public function openPrintAgent($agentId,$action,$extraInfo = [],$platform = "weixin_shop_36"){
		return $this->post("api/Qrcode/openPrintAgent",compact('agentId','action','platform','extraInfo'));
	}

	//云打印平台打印机二维码状态
	public function openPrintAgentStatus($sceneId,$platform = "weixin_shop_36"){
		return $this->post("api/Qrcode/openPrintAgentStatus",compact('sceneId','platform'));
	}

	//云打印平台生成二维码
	public function openPrint($action,$extraInfo = [],$platform = "weixin_shop_36"){
		return $this->post("api/Qrcode/openPrint",compact('action','platform','extraInfo'));
	}

	//云打印平台二维码状态
	public function openPrintStatus($sceneId,$platform = "weixin_shop_36"){
		return $this->post("api/Qrcode/openPrintStatus",compact('sceneId','platform'));
	}
}